package com.example.demo.task;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import lombok.extern.slf4j.Slf4j;

@Slf4j
@Component
public class Task {
    /**
     * 每周日定时执行统计任务
     * @return
     */
    @Scheduled(cron="*/5 * * * * ?")
    public void UpdateCaculater(){
//        log.info("定时任务执行");
    }
}
